package com.bicon.base.data.config;

import org.springframework.amqp.rabbit.annotation.RabbitListenerConfigurer;
import org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class RabbitmqAutoconfiguration {
//	@Autowired
//	private RabbitMessagingTemplate tem;
	
	//支持对复杂数据类型的支持
//	@Bean
//	public MappingJackson2MessageConverter jackson2Converter() {
//		MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter();
//		tem.setMessageConverter(converter);
//		return converter;
//	}
//
//	@Bean
//	public DefaultMessageHandlerMethodFactory myHandlerMethodFactory() {
//		DefaultMessageHandlerMethodFactory factory = new DefaultMessageHandlerMethodFactory();
//		factory.setMessageConverter(jackson2Converter());
//		return factory;
//	}
//
//	@Override
//	public void configureRabbitListeners(RabbitListenerEndpointRegistrar registrar) {
//		//registrar.setMessageHandlerMethodFactory(myHandlerMethodFactory());
//	}
}
